<?php TPL::output('admin/global/header.tpl.htm'); ?>
<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<div id="main-content" style="margin:0 0 0 200px;">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>界面设置</h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/setting/sys_save_ajax/" method="post">
					<fieldset>
					<p groupid="11" name="ui_style">
						<label>用户界面风格：</label>
						<select class="small-input" name="ui_style">
						<?php foreach($this->styles as $skey => $val) { ?>
							<option value="<?php echo $val['id']; ?>"<?php if ($this->setting['ui_style'] == $val['id']) { ?> selected="selected"<?php } ?>><?php echo $val['title']; ?></option>
							<?php } ?>
						</select>
					</p>
					<p groupid="11" name="index_per_page">
						<label>最新动态显示条数：</label>
						<input name="index_per_page" class="text-input small-int" type="text" value="<?php echo $this->setting['index_per_page']; ?>"/>
					</p>
					<p groupid="11" name="notifications_per_page">
						<label>通知显示条数：</label>
						<input name="notifications_per_page" class="text-input small-int" type="text" value="<?php echo $this->setting['notifications_per_page']; ?>"/>
					</p>
					<p groupid="11" name="contents_per_page">
						<label>站点和用户列表页显示条数：</label>
						<input name="contents_per_page" class="text-input small-int" type="text" value="<?php echo $this->setting['contents_per_page']; ?>"/>
					</p>
					<p groupid="11" name="recommend_users_number">
						<label>首页推荐用户和话题数量：</label>
						<input name="recommend_users_number" class="text-input small-int" type="text" value="<?php echo $this->setting['recommend_users_number']; ?>"/>
					</p>
					<p groupid="11" name="recommend_topics_number">
						<label>话题页面推荐话题数：</label>
						<input name="recommend_topics_number" class="text-input small-int" type="text" value="<?php echo $this->setting['recommend_topics_number']; ?>"/>
					</p>
					<p groupid="11" name="focus_topics_list_per_page">
						<label>话题页面我关注的话题数：</label>
						<input name="focus_topics_list_per_page" class="text-input small-int" type="text" value="<?php echo $this->setting['focus_topics_list_per_page']; ?>"/>
					</p>
					<p>
						<input class="button" type="button" onclick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
	<!-- footer -->
	<?php TPL::output('admin/global/footer.tpl.htm'); ?>
	<!-- footer -->
</div>
<!-- main -->
</div>
</body></html>